package cn.common.dto;



import java.util.HashMap;
import java.util.Map;
/**
 * Copyright
 *
 * @Author WuHuang
 * @Date 2022/12/21
 */
public class RetryBaseRequest {
    /** @deprecated */
    @Deprecated
    private Map<String, Object> metaMap = new HashMap();

    public static RetryBaseRequestBuilder builder() {
        return new RetryBaseRequestBuilder();
    }

    /** @deprecated */
    @Deprecated
    public Map<String, Object> getMetaMap() {
        return this.metaMap;
    }

    /** @deprecated */
    public void setMetaMap(final Map<String, Object> metaMap) {
        this.metaMap = metaMap;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof RetryBaseRequest)) {
            return false;
        } else {
            RetryBaseRequest other = (RetryBaseRequest)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$metaMap = this.getMetaMap();
                Object other$metaMap = other.getMetaMap();
                if (this$metaMap == null) {
                    if (other$metaMap != null) {
                        return false;
                    }
                } else if (!this$metaMap.equals(other$metaMap)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof RetryBaseRequest;
    }

    public int hashCode() {
        int result = 1;
        Object $metaMap = this.getMetaMap();
        result = result * 59 + ($metaMap == null ? 43 : $metaMap.hashCode());
        return result;
    }

    public String toString() {
        return "RetryBaseRequest(metaMap=" + this.getMetaMap() + ")";
    }

    public RetryBaseRequest(final Map<String, Object> metaMap) {
        this.metaMap = metaMap;
    }

    public RetryBaseRequest() {
    }

    public static class RetryBaseRequestBuilder {
        private Map<String, Object> metaMap;

        RetryBaseRequestBuilder() {
        }

        /** @deprecated */
        @Deprecated
        public RetryBaseRequestBuilder metaMap(final Map<String, Object> metaMap) {
            this.metaMap = metaMap;
            return this;
        }

        public RetryBaseRequest build() {
            return new RetryBaseRequest(this.metaMap);
        }

        public String toString() {
            return "RetryBaseRequest.RetryBaseRequestBuilder(metaMap=" + this.metaMap + ")";
        }
    }
}
